<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the V2TimMessage constructor from Class V2TimMessage from the v2_tim_message library, for the Dart programming language.">
  <title>V2TimMessage constructor - V2TimMessage - v2_tim_message library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">tencent_cloud_chat_sdk</a></li>
    <li><a href="../../models_v2_tim_message/models_v2_tim_message-library.html">models&#47;v2_tim_message.dart</a></li>
    <li><a href="../../models_v2_tim_message/V2TimMessage-class.html">V2TimMessage</a></li>
    <li class="self-crumb">V2TimMessage constructor</li>
  </ol>
  <div class="self-name">V2TimMessage</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button" title="Toggle brightness">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        dark_mode
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        light_mode
      </span>
    </label>
  </div>
</header>
<main>

  <div
      id="dartdoc-main-content"
      class="main-content"
      data-above-sidebar="models_v2_tim_message&#47;V2TimMessage-class-sidebar.html"
      data-below-sidebar="">
      <div>
<h1><span class="kind-constructor">V2TimMessage</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">V2TimMessage</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="-param-msgID">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">msgID</span>, </span></li>
<li><span class="parameter" id="-param-timestamp"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">timestamp</span>, </span></li>
<li><span class="parameter" id="-param-progress"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">progress</span>, </span></li>
<li><span class="parameter" id="-param-sender"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">sender</span>, </span></li>
<li><span class="parameter" id="-param-nickName"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">nickName</span>, </span></li>
<li><span class="parameter" id="-param-friendRemark"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">friendRemark</span>, </span></li>
<li><span class="parameter" id="-param-faceUrl"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">faceUrl</span>, </span></li>
<li><span class="parameter" id="-param-nameCard"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">nameCard</span>, </span></li>
<li><span class="parameter" id="-param-groupID"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">groupID</span>, </span></li>
<li><span class="parameter" id="-param-userID"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userID</span>, </span></li>
<li><span class="parameter" id="-param-status"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">status</span>, </span></li>
<li><span class="parameter" id="-param-elemType"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> <span class="parameter-name">elemType</span>, </span></li>
<li><span class="parameter" id="-param-textElem"><span class="type-annotation"><a href="../../models_v2_tim_text_elem/V2TimTextElem-class.html">V2TimTextElem</a>?</span> <span class="parameter-name">textElem</span>, </span></li>
<li><span class="parameter" id="-param-customElem"><span class="type-annotation"><a href="../../models_v2_tim_custom_elem/V2TimCustomElem-class.html">V2TimCustomElem</a>?</span> <span class="parameter-name">customElem</span>, </span></li>
<li><span class="parameter" id="-param-imageElem"><span class="type-annotation"><a href="../../models_v2_tim_image_elem/V2TimImageElem-class.html">V2TimImageElem</a>?</span> <span class="parameter-name">imageElem</span>, </span></li>
<li><span class="parameter" id="-param-soundElem"><span class="type-annotation"><a href="../../models_v2_tim_sound_elem/V2TimSoundElem-class.html">V2TimSoundElem</a>?</span> <span class="parameter-name">soundElem</span>, </span></li>
<li><span class="parameter" id="-param-videoElem"><span class="type-annotation"><a href="../../models_v2_tim_video_elem/V2TimVideoElem-class.html">V2TimVideoElem</a>?</span> <span class="parameter-name">videoElem</span>, </span></li>
<li><span class="parameter" id="-param-fileElem"><span class="type-annotation"><a href="../../models_v2_tim_file_elem/V2TimFileElem-class.html">V2TimFileElem</a>?</span> <span class="parameter-name">fileElem</span>, </span></li>
<li><span class="parameter" id="-param-locationElem"><span class="type-annotation"><a href="../../models_v2_tim_location_elem/V2TimLocationElem-class.html">V2TimLocationElem</a>?</span> <span class="parameter-name">locationElem</span>, </span></li>
<li><span class="parameter" id="-param-faceElem"><span class="type-annotation"><a href="../../models_v2_tim_face_elem/V2TimFaceElem-class.html">V2TimFaceElem</a>?</span> <span class="parameter-name">faceElem</span>, </span></li>
<li><span class="parameter" id="-param-groupTipsElem"><span class="type-annotation"><a href="../../models_v2_tim_group_tips_elem/V2TimGroupTipsElem-class.html">V2TimGroupTipsElem</a>?</span> <span class="parameter-name">groupTipsElem</span>, </span></li>
<li><span class="parameter" id="-param-mergerElem"><span class="type-annotation"><a href="../../models_v2_tim_merger_elem/V2TimMergerElem-class.html">V2TimMergerElem</a>?</span> <span class="parameter-name">mergerElem</span>, </span></li>
<li><span class="parameter" id="-param-localCustomData"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">localCustomData</span>, </span></li>
<li><span class="parameter" id="-param-localCustomInt"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">localCustomInt</span>, </span></li>
<li><span class="parameter" id="-param-cloudCustomData"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">cloudCustomData</span>, </span></li>
<li><span class="parameter" id="-param-isSelf"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isSelf</span>, </span></li>
<li><span class="parameter" id="-param-isRead"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isRead</span>, </span></li>
<li><span class="parameter" id="-param-isPeerRead"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isPeerRead</span>, </span></li>
<li><span class="parameter" id="-param-priority"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">priority</span>, </span></li>
<li><span class="parameter" id="-param-offlinePushInfo"><span class="type-annotation"><a href="../../enum_offlinePushInfo/OfflinePushInfo-class.html">OfflinePushInfo</a>?</span> <span class="parameter-name">offlinePushInfo</span>, </span></li>
<li><span class="parameter" id="-param-groupAtUserList"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>&gt;</span>?</span> <span class="parameter-name">groupAtUserList</span>, </span></li>
<li><span class="parameter" id="-param-seq"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">seq</span>, </span></li>
<li><span class="parameter" id="-param-random"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">random</span>, </span></li>
<li><span class="parameter" id="-param-isExcludedFromUnreadCount"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isExcludedFromUnreadCount</span>, </span></li>
<li><span class="parameter" id="-param-isExcludedFromLastMessage"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isExcludedFromLastMessage</span>, </span></li>
<li><span class="parameter" id="-param-isSupportMessageExtension"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isSupportMessageExtension</span>, </span></li>
<li><span class="parameter" id="-param-messageFromWeb"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">messageFromWeb</span>, </span></li>
<li><span class="parameter" id="-param-id"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">id</span>, </span></li>
<li><span class="parameter" id="-param-needReadReceipt"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">needReadReceipt</span>}</span></li>
</ol>)
    </section>

    


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">V2TimMessage({
  this.msgID,
  this.timestamp,
  this.progress,
  this.sender,
  this.nickName,
  this.friendRemark,
  this.faceUrl,
  this.nameCard,
  this.groupID,
  this.userID,
  this.status,
  required this.elemType,
  this.textElem,
  this.customElem,
  this.imageElem,
  this.soundElem,
  this.videoElem,
  this.fileElem,
  this.locationElem,
  this.faceElem,
  this.groupTipsElem,
  this.mergerElem,
  this.localCustomData,
  this.localCustomInt,
  this.cloudCustomData,
  this.isSelf,
  this.isRead,
  this.isPeerRead,
  this.priority,
  this.offlinePushInfo,
  this.groupAtUserList,
  this.seq,
  this.random,
  this.isExcludedFromUnreadCount,
  this.isExcludedFromLastMessage,
  this.isSupportMessageExtension,
  this.messageFromWeb,
  this.id,
  this.needReadReceipt,
}) {
  _clientTime = TIMManager.instance.getServerTime();
  timestamp = _clientTime;
}</code></pre>
</section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. -->
<header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
    <li><a href="../../index.html">tencent_cloud_chat_sdk</a></li>
    <li><a href="../../models_v2_tim_message/models_v2_tim_message-library.html">v2_tim_message</a></li>
    <li><a href="../../models_v2_tim_message/V2TimMessage-class.html">V2TimMessage</a></li>
    <li class="self-crumb">V2TimMessage constructor</li>
</ol>


    <h5>V2TimMessage class</h5>
    <div id="dartdoc-sidebar-left-content"></div>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    tencent_cloud_chat_sdk
      8.5.6864-beta.7
  </span>

  
</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>



</body>

</html>

